package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingPlan;
import com.zzyl.entity.ProjectPlan;
import com.zzyl.vo.NursingPlanVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
    public interface NursingPlanMapper {
    List<NursingPlanVo> getAll();

    void insert(NursingPlan nursingPlan);


    void insertDto(ProjectPlan projectPlan);

    Integer searchID(NursingPlan nursingPlan);

    Page<NursingPlanVo> getByPage(String name, Integer status);

    Integer count(Long id);

    NursingPlanVo getById(Long id);



    void deleteById(Long id);

    void deleteByNPPId(Long id);

    void update(NursingPlan nursingPlan);

    void updateStatus(Long id, Integer status);
}
